package com.zhangzhan.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhangzhan.domain.commcon.ResponseResult;
import com.zhangzhan.domain.dto.LinkDto;
import com.zhangzhan.domain.dto.LinkListDto;
import com.zhangzhan.domain.dto.SaveLinkDto;
import com.zhangzhan.domain.entity.Link;
import com.zhangzhan.domain.vo.PageVO;


/**
 * 友链(Link)表服务接口
 *
 * @author makejava
 * @since 2022-09-11 21:00:28
 */
public interface LinkService extends IService<Link> {

    //友链查询
    ResponseResult getAllLink();

    //分页查询
    ResponseResult<PageVO> listLink(Integer pageNum, Integer pageSize, LinkListDto dto);

    //新增
    ResponseResult saveLink(SaveLinkDto dto);

    //修改前查询
    ResponseResult selecyById(Long id);

    //修改
    ResponseResult updateLink(LinkDto dto);

    //删除
    ResponseResult deleteLinkByIds(Long[] ids);
}

